<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{codespostauxmsgs['navigation.back']}" action="/jsf/codespostaux/viewCodesPostaux.xhtml"/>
		
			<p:panel header="#{codespostauxmsgs['adresses.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{codespostauxmsgs['adresses.addadresse.title']}:*" />
							<h:outputText value="#{CodesPostauxComponent.adresseses.addAdresse}"/>
					<h:outputText value="#{codespostauxmsgs['adresses.addtopnpai.title']}:" />
							<h:inputText id="codespostaux_addtopnpai" value="#{CodesPostauxComponent.adresseses.addTopNpai}" required="false" label="codespostaux_addtopnpai" />
					<h:outputText value="#{codespostauxmsgs['adresses.addtypevoie.title']}:" />
							<h:inputText id="codespostaux_addtypevoie" value="#{CodesPostauxComponent.adresseses.addTypeVoie}" required="false" label="codespostaux_addtypevoie" />
					<h:outputText value="#{codespostauxmsgs['adresses.addligne1.title']}:" />
							<h:inputText id="codespostaux_addligne1" value="#{CodesPostauxComponent.adresseses.addLigne1}" required="false" label="codespostaux_addligne1" />
					<h:outputText value="#{codespostauxmsgs['adresses.addligne2.title']}:" />
							<h:inputText id="codespostaux_addligne2" value="#{CodesPostauxComponent.adresseses.addLigne2}" required="false" label="codespostaux_addligne2" />
					<h:outputText value="#{codespostauxmsgs['adresses.addligne3.title']}:" />
							<h:inputText id="codespostaux_addligne3" value="#{CodesPostauxComponent.adresseses.addLigne3}" required="false" label="codespostaux_addligne3" />
					<h:outputText value="#{codespostauxmsgs['adresses.addbureaudistrib.title']}:" />
							<h:inputText id="codespostaux_addbureaudistrib" value="#{CodesPostauxComponent.adresseses.addBureauDistrib}" required="false" label="codespostaux_addbureaudistrib" />
					<h:outputText value="#{codespostauxmsgs['adresses.adddatecreation.title']}:" />
							<p:calendar id="codespostaux_adddatecreation" value="#{CodesPostauxComponent.adresseses.addDateCreation}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{codespostauxmsgs['adresses.adddatemodification.title']}:" />
							<p:calendar id="codespostaux_adddatemodification" value="#{CodesPostauxComponent.adresseses.addDateModification}" required="false"  converter="primefacesCalendarConverter" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{codespostauxmsgs['navigation.save']}" action="#{CodesPostauxComponent.saveCodesPostauxAdresseses(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite, CodesPostauxComponent.adresseses)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>